package base.test;

import base.utils.Elvis;
import base.utils.PrintUtils;

public class ElvisDemo {


    public static void main(String[] args) {
        testDemo();
    }

    private static void testDemo() {
        StateListener listener = new StateListener() {
            @Override
            public void isSuccess(boolean isSuccess) {
                PrintUtils.print(".. ElvisDemo  *** isSuccess = " + isSuccess);
            }
        };

        Elvis.of(listener).ifPresent(stateListener -> {
            stateListener.isSuccess(true);
        });

    }


}
